﻿<script type="text/javascript">
    function jump(id, name, displayDBName) {
        window.location.href = "SingleSearch?id=" + id + "&name=" + escape(name) + "&displayDBName=" + escape(displayDBName);
    }

</script>
<div class="wrap">
    <ul class="media-box">
        @if (ViewBag.DatabaseList != null && ViewBag.DatabaseList.Count > 0)
        {
            int i = 0;
            foreach (CNKI.TPI.Web.Search.Model.SYS_CMS_DATABASE_CLS_NODE item in ViewBag.DatabaseList)
            {
            <li class='clearfix'>
                <h2>@Html.Raw("<a class='m-b-li" + (i % 5 + 4) + "' style=\"text-decoration:none;cursor:default;\">" + item.Name + "</a>")</h2>
                <ul class='m-b-ul-in clearfix'>
                    @foreach (CNKI.TPI.Web.Search.Model.SYS_CMS_DATABASE item1 in item.DatabaseList)
                    {
                        <li>@Html.Raw("<a href=\"#\" onClick=\"jump('" + item1.SysID + "','" + item1.DatabaseCode + "','" + item1.DatabaseName + "')\">" + item1.DatabaseName + "</a>")</li>
                    }
                </ul>
            </li>
                    i++;
            }
        }
    </ul>
</div>
